
def outbound_1():
  """Outbound call DN1 to ExtDn, release DN1"""
  DN1.MakeCall(Ext1DN2)
  Ext1DN2.AnswerCall()
  DN1.ReleaseCall()

def outbound_2():
  """Outbound call DN1 to ExtDn, abnormal release DN1"""
  DN1.MakeCall(Ext1DN2)
  DN1.ReleaseCall()

def outbound_3():
  """Outbound call DN1 to ExtDn, release ExtDn"""
  DN1.MakeCall(Ext1DN2)
  Ext1DN2.AnswerCall()
  Ext1DN2.ReleaseCall()


def outbound_6():
  """DN1 call to DN2, DN2 two step transfer to ExtDN, release DN1"""
  DN1.MakeCall(DN2)
  DN2.AnswerCall()
  DN2.InitiateTransfer(Ext1DN2)
  Ext1DN2.AnswerCall()
  DN2.CompleteTransfer()
  DN1.ReleaseCall()

def outbound_7():
  """DN1 call to DN2, DN2  tinit  transfer to ExtDN,  abnormal release DN2, release DN1"""
  DN1.MakeCall(DN2)
  DN2.AnswerCall()
  DN2.InitiateTransfer(Ext1DN2)
  DN2.ReleaseCall()
  DN1.ReleaseCall()

def outbound_8():
  """DN1 call to DN2, DN2 2step transfer to ExtDN,  completed before cons. party answer, release DN1"""
  DN1.MakeCall(DN2)
  DN2.AnswerCall()
  DN2.InitiateTransfer(Ext1DN2)
  DN2.CompleteTransfer()
  Ext1DN2.AnswerCall()
  DN1.ReleaseCall()

def outbound_9():
  """DN1 call to DN2, DN2 conference to ExtDN, release DN1,DN2"""
  DN1.MakeCall(DN2)
  DN2.AnswerCall()
  DN2.InitiateConference(Ext1DN2)
  Ext1DN2.AnswerCall()
  DN2.CompleteConference()
  DN1.ReleaseCall()
  DN2.ReleaseCall()

def outbound_10():
  """DN1 call to DN2, DN2 cinit conference to ExtDN, abnormal release DN2, release DN1"""
  DN1.MakeCall(DN2)
  DN2.AnswerCall()
  DN2.InitiateConference(Ext1DN2)
  DN2.ReleaseCall()
  DN1.ReleaseCall()
